package cn.z2huo.knowledge.basic.string;

import cn.hutool.json.JSONUtil;

import java.util.Arrays;
import java.util.List;

/**
 * <p>
 *
 * @author z2huo
 */
class StringValueOfTest {

    public static void test() {
        System.out.println(List.of("hhh"));
        System.out.println();

        String string = null;
        System.out.println(Arrays.asList(string));

        Object obj = null;
        string = String.valueOf(obj);
        System.out.println(Arrays.asList(string));
        System.out.println();

        System.out.println(JSONUtil.toJsonStr(Arrays.asList(obj)));
        System.out.println(JSONUtil.toJsonStr(Arrays.asList("null")));
    }

    public static void main(String[] args) {
        test();
    }
}
